<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body{
            perspective:500px ;
        }
        .box{position: relative;
            height: 400px;
            width: 400px;
            margin: 200px auto;
            transition: all 5s;
           transform-style: preserve-3d;

        }
        .box div{
            position: absolute;
            height: 100%;
            width: 100%;
            border-radius: 50%;
            left: 0;
            top: 0;
            color: white;
            font-size: 25px;
            line-height: 400px;
          
            text-align: center;
        }
        .box div:first-child{
            background-color: pink;
            z-index: 1;
        }
        .box div:last-child{
            background-color:purple;
            transform: rotateY(180deg);
        }
        .box:hover{
            transform: rotateY(180deg);

        }

    </style>
</head>
<body>
    <div class="box">
        <div>荣儿最漂亮</div>
        <div>是的没错,就是我</div>
    </div>
</body>
</html>